<?php
include "includes/db.php";
$mysqli = new MossCMS();

if ($_SESSION[$prefix.'_username'] == ""){  header("Location: login.php"); exit;}
$in_id = (int)$_GET['id'];
$content_info = $mysqli->get_content($in_id);
$date = date('m/d/Y',(strtotime($content_info['content_date'])));
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Moss, Inc - Portal</title>
<link href="includes/sw_orig.css" rel="stylesheet" type="text/css" media="screen" />
<link href="includes/local.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="container">
  <div id="header">
  	<?php include "includes/header.php"; ?>
  </div>


<div id="mainContent" class="frontpage">
<h1><?php echo $content_info['content_title'];?></h1>
<em><?php echo $date;?></em><br>
<Br>
<img src="<?php echo $content_info['content_image'];?>" align="right">
<?php echo $content_info['content_content'];?>
				 
	  
	  
            
		<div class="clear"></div>	

 
<div id="footer">
	<?php include "includes/footer.php"; ?>
</div>
<!-- end #container --></div>

<br />
</body>
</html>
